{include file="../public/static/html/header.html"}
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 资讯管理 <span class="c-gray en">&gt;</span> 资讯列表 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="page-container">
	<div class="text-c">
		<button onclick="removeIframe()" class="btn btn-primary radius">关闭选项卡</button>
	 <span class="select-box inline">
		</span> 日期范围：
		<input type="text" onfocus="WdatePicker()" id="logmin" class="input-text Wdate" style="width:120px;">
		-
		<input type="text" onfocus="WdatePicker()" id="logmax" class="input-text Wdate" style="width:120px;">
		<button name="" id="" class="btn btn-success" type="submit"><i class="Hui-iconfont">&#xe665;</i> 搜申请单</button>
	</div>
	<div class="cl pd-5 bg-1 bk-gray mt-20"><span class="r">共有数据：<strong>54</strong> 条</span></div>
	<div class="mt-20">
		<table class="table table-border table-bordered table-bg table-hover table-sort table-responsive">
			<thead>
				<tr class="text-c">
					<th width="25"><input type="checkbox" name="" value=""></th>
					<th width="80">单号</th>
					<th width="50">姓名</th>
					<th width="80">电话</th>
					<th width="120">银行卡</th>
					<th width="120">身份证</th>
					<th width="120">照片</th>
					<th width="75">服务密码</th>
					<th width="60">借款金额</th>
					<th width="60">借款时间</th>
					<th width="120">操作</th>
				</tr>
			</thead>
			<tbody>
			{volist name="list" id="vo"}
				<tr class="text-c">
					<td><input type="checkbox" value="{$vo.order_num}" name=""></td>
					<td>{$vo.order_num}</td>
					<td>{$vo.nickname}</td>
					<td>{$vo.mobile|indent_mobile}</td>
					<td>{$vo.bankcard}</td>
					<td>{$vo.idcard}</td>
					<td><img width="170" height="170" class="picture-thumb" src="{$vo.picture}"></td>
					<td>{$vo.service_pas}</td>
					<td>{$vo.money}</td>
					<td>{$vo.day}</td>
					<td class="f-14 td-manage"><a style="text-decoration:none" onClick="examine_pass(this)" name="{$vo.order_num}" href="javascript:;" title="审核通过">
						<i class="Hui-iconfont">&#xe6e1;</i></a>
						<a style="text-decoration:none" class="ml-5" onClick="examine_stop(this)" name="{$vo.order_num}" href="javascript:;" title="审核不通过">
						<i class="Hui-iconfont">&#xe6dd;</i></a> <a style="text-decoration:none" class="ml-5" onClick="message_prov(this)" name="{$vo.user_id}" href="javascript:;" title="查看信息是否正确"><i class="Hui-iconfont">&#xe6e0;
						</i></a>
					</td>
				</tr>
			 {/volist}
			</tbody>
		</table>
	</div>
</div>
{include file="../public/static/html/last.html"}
<script type="text/javascript">
function article_add(title,url,w,h){
	layer_show(title,url,w,h);
}
$('.table-sort').dataTable({
	"aaSorting": [[ 1, "desc" ]],//默认第几个排序
	"bStateSave": true,//状态保存
	"pading":false,
	"aoColumnDefs": [
	  //{"bVisible": false, "aTargets": [ 3 ]} //控制列的隐藏显示
	  {"orderable":false,"aTargets":[0,8]}// 不参与排序的列
	]
});

/*审核-通过*/
function examine_pass(obj){
    var data={};
    var url="/admin/examine/examine_pass";
    data['order_num']=$(obj).attr('name');
    $.post(url,data,function (res) {
		if(res.code==1)
		{
		    dialog.ok('操作成功!');
		}
		else if(res.code==0)
		{
		    dialog.error_ok('操作失败!!请重新操作');
		}
    },"JSON");

}
/*审核-拒接*/
function examine_stop(obj){
    var data={};
    var url="/admin/examine/examine_stop";
    data['order_num']=$(obj).attr('name');
    $.post(url,data,function (res) {
        if(res.code==1)
        {
            dialog.suc_ok('操作成功!');
        }
        else if(res.code==0)
        {
            dialog.error_ok('操作失败!!请重新操作');
        }
    },"JSON");

}
/*4元素身份验证*/
function message_prov(obj){
    var data={};
    var url="/admin/examine/message_prov";
    data['order_num']=$(obj).attr('name');
    $.post(url,data,function (res) {
        if(res.code==1)
        {
            dialog.suc_ok('信息正确!!可以考虑借款');
        }
        else
        {
            dialog.error_ok('信息错误请不要借款!!!');
        }
    },"JSON");
}
</script> 
</body>
</html>